Glass that bends the page.
Refractive glass UI components for React, drawn by one WebGL2 shader.
Distance this week
Autumn update
Sliders, switches and checkboxes, now in refractive glass.
NewIstanbul
16°
Cloudy
H:19° L:15°
The components. Each one does a single thing the others don't. Nothing repeats, so picking one takes a second.
Built to stay out of your way
Fig 0.1
0
dependencies
A zero-dependency core engine. No three.js required for the core components, nothing extra to keep in sync.
Fig 0.2
1
WebGL2 context
One renderer draws every glass surface on the page, and it stops completely when nothing moves.
Fig 0.3
CSS
when it can't
Without WebGL2, or with reduced motion, every component keeps a plain CSS look. Never a blank box.
Install in one command
Install @vitrumui/react (coming soon) and import any component directly.
npm install @vitrumui/reactWorking with an AI agent? Point it at llms.txt or install the skill. For AI agents
import { GlassButton, GlassTabs } from '@vitrumui/react'
<GlassTabs
aria-label="View"
value={view}
onValueChange={setView}
options={[
{ value: 'week', label: 'Week' },
{ value: 'month', label: 'Month' },
]}
/>
<GlassButton material="tinted" className="bg-sky-500 text-white">
Save
</GlassButton>